/* global axios */
const ShopAPI = {
  // 获取商铺信息
  getShopInfo (shopID) {
    return axios.get('/api/shop?shopID=' + shopID, {
      params: {}
    }).then(res => res.data)
  },
  // 获取商铺菜单列表
  getShopMenu (shopID) {
    return axios.get('/api/menu?shopID=' + shopID, {
      params: {}
    }).then(res => res.data)
  },
  // 获取商铺评分信息
  getShopRateScores (shopID) {
    return axios.get('/api/shopRateScores?shopID=' + shopID, {
      params: {}
    }).then(res => res.data)
  },
  // 获取商铺评价标签信息
  getRatingTags (shopID) {
    return axios.get('/api/ratingTags?shopID=' + shopID, {
      params: {}
    }).then(res => res.data)
  },
  // 获取商铺评价列表信息
  getShopRatings (shopID, pageIdx) {
    return axios.get('/api/shopRatings?shopID=' + shopID + '&page=' + pageIdx, {
      params: {}
    }).then(res => res.data)
  }
}
export default ShopAPI
